/** @format */

import axios from '@/utils/request';

// RFID通道门 分页
export function doorPageList(params) {
  return axios.get('/bas/deviceRfidDoor/page', { params: params });
}

// RFID通道门 新增
export function add(data) {
  return axios.post('/bas/deviceRfidDoor/add', data, {
    headers: {
      'Content-Type': 'application/json'
    }
  });
}

// RFID通道门 更新
export function update(data) {
  return axios.put('/bas/deviceRfidDoor/edit', data);
}

// RFID通道门 删除
export function delDoor(deviceId) {
  return axios.delete('/bas/deviceRfidDoor/del', { params: { deviceId: deviceId } });
}

// RFID通道门 详情
export function getInfo(deviceId) {
  return axios.get('/bas/deviceRfidDoor/queryOne', { params: {deviceId: deviceId} });
}